﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HelloMinasan.Domain;
using System.ComponentModel.DataAnnotations;
using HelloMinasan.UserDefinedType;

namespace HelloMinasan.Web.ViewModels
{
    public class CircleModel
    {
        public CircleModel()
        {
            CreatedTime = DateTime.UtcNow;
            ColorCode = "#8fe9c2";
            Color = "CircleColor01";
        }

        public int Id { get; set; }

        [Required]
        [StringLength(40, ErrorMessageResourceType = typeof(Resources.Resource), ErrorMessageResourceName = "InValidMaxSize")]
        public string Name { get; set; }

        public string Description { get; set; }
        
        public string Color { get; set; }

        public string ColorCode { get; set; }

        public int NumberOfMembers { get; set; }

        public bool IsMemberCircle { get; set; }

        public DateTime CreatedTime { get; set; }

        public EnumCircleType CircleType { get; set; }

        public int OwnerId { get; set; }
    }
}